import Node;

import java.util.List;


public class Node {
	public String value;
	public Node parent;
	public List<Node> children;
	public String terminal;
	
	public boolean equals(Node node)
	{
		if (this==null && node==null)
			return true;
		if (this==null && node!=null)
			return false;
		if (this!=null && node ==null)
			return false;
		if (this.value.equals(node.value))
			return true;
		else
			return false;
	}
}